#include "app_buffer.h"
#include "log/log.h"


int main(int argc, char const *argv[])
{
    Buffer *buffer=app_buffer_init(15);
    app_buffer_write(buffer,"hello",5);
    app_buffer_write(buffer,"world",5);
    char data_buf[10];
    int len=app_buffer_read(buffer,data_buf,sizeof(data_buf));
   log_debug("len=%d,data_buf=%s",len,data_buf);

   char data_buf2[10];
   int len2=app_buffer_read(buffer,data_buf2,sizeof(data_buf2));
   log_debug("len=%d,data_buf2=%s",len2,data_buf2);
   
    return 0;
}
